<include file="App/Home/View/Public/header.html"/>
<!--主体内容开始-->
<div id="account-main" role="main">
	<div class="container account-content">
		<div class="row">
			<include file="App/Home/View/Public/left.html"/>
			<!--右侧内容开始-->
			<div class="col-xs-9 account-right">
				<div id="entrust" style="position:relative;">
					<form action="" id="form_search" method="get">
						<h1 class="title">委托管理</h1>
						<div id="entrust-currency" class="dropdown" style="position:absolute;top:0;right:0;display:table;width:300px;height:50px;">
							 <form action="{:U('Entrust/manage')}" method="post">
				                <select id="coninname" name="currency" style="float:left;width:120px;height:30px;margin-top:15px;">
				                    <volist name="culist" id="vo">		    
					                    <option value="{$vo['currency_id']|default=""}" <eq name='post.currency' value="$vo['currency_id']" >selected</eq>  >{$vo['currency_id']|getCurrencymarkByCurrency=###}对{$vo['trade_currency_id']|getCurrencymarkByCurrency=###}</option>
					                 </volist>    
				                </select>
				                <select id="status" style="margin-left:20px;; width:80px;float:left;height:30px;margin-top:15px;" name="status">
				                      <option value="0" <eq name='post.status' value='0' >selected</eq> >未成交</option>
				                     <option value="1" <eq name='post.status' value='1' >selected</eq> >部分成交</option>
				                   	 <!--<option value="2">已成交</option>
				                     <option value="3">已撤销</option>  -->  
				                     <option value="0,1" <eq name='post.status' value='0,1' >selected</eq>>全部</option>
				                </select>
				                <input value="查询" class="filtrate" style="width: 60px;
    height: 28px;
    color: #008fff;
    background-color: #fff;
    border-radius: 2px;
    border: 1px solid #008fff;
    padding: 3px;margin-top:15px;margin-left:20px;" type="submit">
							</form>
						</div>
						<table class="table" id="entrust-table">
							<thead>
								<tr>
									<th>委托时间</th>
									<th>币种</th>
									<th>类型</th>
									<th>委托数量</th>
									<th>委托价格</th>
									<th>成交数量</th>
									<th>尚未成交</th>
									<th>状态</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody>
								<foreach name="list" item="vo">
									<tr>
										<td style="border-left:1px solid #ccc;">{$vo.add_time|date='Y-m-d H:i:s',###}</td>
										<td>{$vo.currency_id|getCurrencynameByCurrency=###}</td>
											<eq name="vo['type']" value="sell"> <td class="red"><else/><td style="color:#039904;"></eq>{$vo.type|fomatOrdersType=###}</td>
										<td>{$vo.num|floatval=###}</td>
										<td>{$vo.price|floatval=###}</td>
										<td>{$vo.trade_num|floatval=###}</td>
										<td>{$vo['num']- $vo['trade_num']|floatval=###}</td>
										<td>{$vo.status|formatOrdersStatus=###}</td>
										<td><a href="javascript:void(0)"  onclick="cexiao({$vo.orders_id})">撤销</a></td>
									</tr>
								</foreach>
							</tbody>
						</table> 
					</form>
				</div>
				<div class="row new-page">
					<div class="col-sm-12 text-center">
						<ul class="pagination">
						{$page}
						</ul>
					</div>
				</div>
			</div>
			<!--右侧内容结束-->
		</div>
	</div>
</div>
<!--主题内容结束-->
<include file="App/Home/View/Public/footer.html"/>
